package com.paipai.controller;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class ExeptionController {
	@ExceptionHandler
	@ResponseBody
	public String  handle(Exception e) {
		return e.getMessage();
		
	}

}
